package com.lanchetech.user.service.impl;

import com.lanchetech.bean.response.ResultData;
import com.lanchetech.dao.LocalizedMapper;
import com.lanchetech.entity.Spu;
import com.lanchetech.user.service.LocalizedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LocalizedMapperImpl implements LocalizedService {
    @Autowired
    LocalizedMapper localizedMapper;


    @Override
    public ResultData<List<Spu>> selectByName(String name) {

        List<Spu> spus = localizedMapper.selectByName(name);
        return new ResultData<>(spus);
    }
}
